﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HostelList.aspx.cs" Inherits="UI.ModMini.HostelList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
        <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            列表</div>
        <div id="topRight" class="pagetopright">
            编号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px"></asp:TextBox>
             <asp:DropDownList ID="ddlStatu" runat="server" CssClass="InputCss">
              <asp:ListItem Value="Y">有效</asp:ListItem>
                <asp:ListItem Value="N">无效</asp:ListItem>
                <asp:ListItem Value="M">提前结束</asp:ListItem>                        
            </asp:DropDownList>
            <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"
                CssClass="ButtonCss" />           
            <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" OnClick="btnExcel_Click" />
            <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss"  />
            &nbsp;
        </div>
    </div>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="HostelCode" Width="100%" AutoGenerateColumns="False"
       
 GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound" CssClass="td">
        <Columns>
                  
            <asp:TemplateField HeaderText="编号" SortExpression="HostelCode" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('HostelAdd.aspx?HostelCode=<%# Eval("HostelCode")%>',800,550)">
                        <%# Eval("HostelCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="地址" SortExpression="Addr"  >
                <ItemTemplate>
                    <a href="javascript:ShowLink('HostelAdd.aspx?HostelCode=<%# Eval("HostelCode")%>',800,550)">
                        <%# Eval("Addr")%></a>
                </ItemTemplate>
                <ItemStyle Width="120px" />
            </asp:TemplateField>
           

            <asp:BoundField DataField="ReadyNum" HeaderText="预计人数" SortExpression="ReadyNum">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="InNum" HeaderText="已入住数" SortExpression="InNum">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="Hostelsex" HeaderText="宿舍性别" SortExpression="Hostelsex">
                <ItemStyle Width="90px" />
            </asp:BoundField>
           
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="操作"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('HostelEmpAdd.aspx?HostelCode=<%# Eval("HostelCode")%>',800,550)">
                        增加舍员</a>
                </ItemTemplate>
                <ItemStyle Width="70px" />
            </asp:TemplateField>
        </Columns>
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />           
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
     <div id="divAmount" class="amountLine">
        <asp:Label ID="lbAmount" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
